OUTFILE=test
INFILE=test.cpp
CC=g++
#CXXFLAG=-std=c++11 -g -lpthread -I./../src/Common -L./../src/Common -lcommon -llog4cxx -I/usr/include/mysql -lmysqlclient -lxml2 -I/usr/local/include/libxml2 -L/usr/local/libxml2 -D_SPANMMAP 
#CXXFLAG=-std=c++11 -g -lpthread -I./../src/Common -L./../src/Common -lcommon -llog4cxx -I/usr/include/mysql -lmysqlclient -lxml2 -I/usr/local/include/libxml2 -L/usr/local/libxml2 -D_SPANPOOL
CXXFLAG=-std=c++11 -g -lpthread -I./../src/Common -L./../src/Common -lcommon -llog4cxx -I/usr/include/mysql -lmysqlclient -lxml2 -I/usr/local/include/libxml2 -L/usr/local/libxml2 -D_CURNEW #-D_SPANMMAP #-D_SPANPOOL

$(OUTFILE):$(INFILE)
	$(CC) -o $@ $^ $(CXXFLAG)

.PHONY:clean
clean:
	rm -rf $(OUTFILE)
	rm -rf core.*
